canvas{
    width: 400px;
    height: 400px;
    position: absolute;
    left:50%;
    margin-left:-200px;
    top:50%;
    margin-top:-200px;
}